class TaskModel():
    def __init__(self,calibration_set_id, task_id, project_id, file_name = None, file_size = None):
        self.trainstate = 0
        self.calibration_set_id = calibration_set_id # 分类/回归
        self.task_id=task_id
        self.log_path = '' # 日志路径
        self.log_name = '' # 日志名称
        self.project_id = project_id # 项目id
        self.file_name = file_name
        self.file_size = file_size

    def get_calibration_id(self):
        return self.calibration_set_id

    def set_calibration_id(self, calibration_id):
        self.calibration_set_id = calibration_id
        return 1

    def set_task_id(self, task_id):
        self.task_id = task_id
        return 1

    def get_task_id(self):
        return self.task_id

    def set_project_id(self, project_id):
        self.project_id = project_id
        return 1

    def get_project_id(self):
        return self.project_id

    def set_state(self, state):
        self.trainstate = state
        return 1

    def get_state(self):
        return self.trainstate

    def set_log_path(self, log_path):
        self.log_path = log_path

    def get_log_path(self):
        return self.log_path

    def set_log_name(self, log_name):
        self.log_name = log_name

    def get_log_name(self):
        return self.log_name

    def set_file_name(self, file_name):
        self.file_name = file_name

    def get_file_name(self):
        return self.file_name

    def set_file_size(self, file_size):
        self.file_size = file_size

    def get_file_size(self):
        return self.file_size

